home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1993 / The Association of Shareware Professionals Advantage CD-ROM 1993.iso / files / writions / boxer50b / demo.c < prev    next >
Text File  |  1993-04-06  |  6KB  |  211 lines

  1.  
  2.     ╒════════════════════════╕
  3.     │   WELCOME TO BOXER !   │
  4.     ╘════════════════════════╛
  5.  
  6. //  To help acquaint you with some of BOXER's features, a short editing
  7. //  session will be simulated using the keystroke macro facility.  A
  8. //  message will appear on the bottom line when the macro is waiting to
  9. //  proceed.  Some of the more unusual and more powerful features will
  10. //  be demonstrated.
  11.  
  12.  
  13.  
  14.  
  15.     ■ PRESS CTRL-A TO BEGIN THE DEMONSTRATION...
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.     ╒════════════════════════╕
  24.     │   SYNTAX HIGHLIGHTING  │
  25.     ╘════════════════════════╛
  26.  
  27. //  BOXER can display colorized program code for all major programming
  28. //  languages!  Reserved words, comments, symbols and constants are
  29. //  displayed in user-selectable colors.  BOXER selects the configuration
  30. //  automatically based on the extension of the file being edited.  You
  31. //  can easily extend this feature to recognize other languages!
  32.  
  33.  
  34.     int syntax_highlight(char *text)         /* sample code in full color */
  35.     {
  36.     static char *array = "ABCDEF";           /* declare a static array */
  37.     register int i;                          /* loop variable */
  38.  
  39.     for (i = 1; i <= 10; i++)
  40.         strcpy(text, array);                 /* fill the caller's array */
  41.  
  42.  
  43.  
  44.     ╒════════════════════════╕
  45.     │ MULTILEVEL UNDO & REDO │
  46.     ╘════════════════════════╛
  47.  
  48. //  ■ Any command which modifies text can be undone with UNDO.
  49. //    If you "undo too far", REDO can be used to undo UNDO!
  50.  
  51.     ----------------------------------------------------------
  52.     In Case of Emergency, follow these 3 simple instructions:
  53.        Shut the valve in Cooling Tower A
  54.        Close the door to Remote Chamber 3
  55.        Activate the Radioactive Alarm
  56.     ----------------------------------------------------------
  57.  
  58. //  ■ You never need to worry about accidental deletions, because
  59. //    BOXER can restore your file with a single keystroke!
  60.  
  61. //  ■ By default, 200 changes can be undone.  Up to 4,096 if you desire!
  62.  
  63.  
  64.  
  65.     ╒════════════════════════╕
  66.     │ ALPHA & NUMERIC SORTS  │
  67.     ╘════════════════════════╛
  68.  
  69. //  ■ A range of lines can be sorted alphabetically or numerically, in
  70. //    ascending or descending order.
  71.  
  72.      7. Canada
  73.      3. India
  74.      2. Morocco
  75.      8. Romania
  76.     10. Poland
  77.      4. Finland
  78.      9. Switzerland
  79.      6. Algeria
  80.      1. Thailand
  81.      5. Brazil
  82.   
  83. //  ■ The column to sort on is indicated by the column of marked text.
  84.  
  85.  
  86.     ╒════════════════════════╕
  87.     │     BLOCK COMMANDS     │
  88.     ╘════════════════════════╛
  89.  
  90. //  A rich set of block commands is provided to operate upon marked
  91. //  text blocks.  These include: cut, copy, append, paste, delete,
  92. //  write, print, indent, sort, entab, detab, invert, total, average,
  93. //  fill with specified character, upper/lower/caps case operations,
  94. //  and line, word, and character count.
  95.  
  96.  
  97.    52. Red
  98.    23. Blue
  99.    14. Green
  100.     8. Brown
  101.     3. Gray
  102.  
  103.  
  104. //  ■ BOXER's Block Commands provide unmatched editing power!
  105.  
  106.  
  107.     ╒════════════════════════╕
  108.     │     COLUMN MARKING     │
  109.     ╘════════════════════════╛
  110.  
  111. //  ■ BOXER allows text to be marked in columns.  This can greatly
  112. //    simplify editing jobs which would be tedious with other editors.
  113.  
  114.  
  115.       ╔═══════════╦═══════════╦═══════════╦══════════╗
  116.       ║  Stock #  ║   Qty.    ║   Item    ║  Total   ║
  117.       ╟───────────╫───────────╫───────────╫──────────╢
  118.       ║ AJ17432-P ║    12     ║           ║ $100.20  ║
  119.       ║ AJ43331-R ║    12     ║           ║   98.00  ║
  120.       ║ DF03229-A ║    24     ║           ║   54.50  ║
  121.       ║ AX43821-R ║    12     ║           ║  128.00  ║
  122.       ║ AQ42901-R ║    12     ║           ║   43.00  ║
  123.       ║ RE90123-E ║    36     ║           ║   36.00  ║
  124.       ╚═══════════╩═══════════╩═══════════╩══════════╝
  125.  
  126.  
  127.  
  128.     ╒════════════════════════╕
  129.     │    GRAPHIC DRAWING     │
  130.     ╘════════════════════════╛
  131.  
  132. //  ■ BOXER has a graphic drawing mode to allow charts and forms to be
  133. //    created easily.  A variety of line styles are available.  Marked
  134. //    rectangles can be framed with a selected line style.
  135.  
  136.  
  137.         President
  138.  
  139.  
  140.                         Vice President
  141.  
  142.  
  143.                                               The Rest of Us
  144.  
  145.  
  146.  
  147.  
  148.  
  149.     ╒════════════════════════╕
  150.     │ SYNCHRONIZED SCROLLING │
  151.     ╘════════════════════════╛
  152.  
  153. //  ■ BOXER even has a synchronized
  154. //    scrolling mode that allows 2
  155. //    or more files to be compared
  156. //    in adjacent windows.  Just
  157. //    press Scroll Lock, and all
  158. //    windows will scroll together
  159. //    Up and Down!
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.     ╒════════════════════════╕
  171.     │    WORD PROCESSING     │
  172.     ╘════════════════════════╛
  173.  
  174.     BOXER supports paragraph reformatting with
  175.     several modes of text
  176.     justification.  Word wrap can be optionally enabled to format text as it
  177.     is entered from the keyboard.
  178.     Printing parameters provide
  179.     control over pagination: margins, headers, footers,
  180.     page numbering,
  181.     line numbering, selective page printing, etc.
  182.  
  183. //  ■ Documents can be printed single or double spaced, etc.
  184.  
  185. //  ■ A Range of pages can be printed.
  186.  
  187. //  ■ The starting page number can be specified.
  188.  
  189.  
  190.  
  191.     ╒════════════════════════╕
  192.     │      GOOD LUCK !       │
  193.     ╘════════════════════════╛
  194.  
  195. //  BOXER is now at your control.  You may edit in this sample file
  196. //  if you wish, or terminate the edit session by pressing:
  197.  
  198.                         Alt-Q     to Quit  *
  199.  
  200.  
  201.  
  202.  
  203.     If you choose to experiment:
  204.  
  205. //  Use F10 to access the pull-down menu system.  The message line gives
  206. //  additional info about the currently highlighted item.  F1 will
  207. //  display the complete Help section for the highlighted menu item.
  208.  
  209.     *  // Key assignments refer to BOXER's default keyboard layout
  210.  
  211.